All code needed to replicate "Asymmetric Flooding as a Tool for Foreign Influence on Social Media" can be run through the main R script "00_run_all_code.R".

Figures are created as PDFs and named using the figure numbers from the manuscript. The tables will be printed to screen or can be printed to a log file.

Some data cannot be provided due to data-sharing restrictions by Twitter. These files are available here: https://transparency.twitter.com/en/reports/information-operations.html (go to the download archive section). Note that Twitter at one point periodically pruned this data and might still do so. Any differences in replication output from that pruning should be very small.

Data from Linvill and Warren is available here: https://github.com/fivethirtyeight/russian-troll-tweets.

Note that, as written, this replication code requires around 18GB of available hard drive space (see warning in "00_run_all_code.R").

Please contact the authors with any questions. We're happy to answer questions and we appreciate others double-checking the work.

File structure:
./code/
./data/
./figs/



Figures in PDFs:

Figure1Bottom_FigureA2_blm_distraction_replicate_psrm.pdf
- Page 1: Figure 1 bottom
- Page 2 and 3: Figure A2

Figure1Top_FigureA1_conservative_mobilization_replicate_psrm.pdf
- Page 1: Figure 1 top
- Page 2: Figure A1

Figure2_FigureA5_labeled_tweets_over_time_replicate_psrm.pdf
- Page 1: Figure 2

Figure3_A18_labeled_tweets_over_time_si_suppression_replicate_psrm.pdf
- Page 1: Figure 3 and A18 (duplicated)

FigureA10_A11_troll_activity_replicate_psrm.pdf
- Page 3: Figure A10 top
- Page 4: Figure A10 bottom
- Page 1: Figure A11 top
- Page 2: Figure A11 bottom

FigureA3_maga_politicization_replicate_psrm.pdf
- Page 1: Figure A3

FigureA6_A12_A13_A14_A16_labeled_tweets_over_time_si_replicate_psrm.pdf
- Page 2: Figure A6
- Page 6: Figure A5
- Page 7: Figure A12
- Page 8: Figure A13
- Page 3: Figure A14
- Page 4: Figure A15
- Page 9: Figure A16

FigureA7_calibration_plots_replicate_psrm.pdf
- Page 1: Figure A7

FigureA8_model_fit_plots_replicate_psrm.pdf
- Page 1: Figure A8

figureA17_network_plot_replicate_psrm.pdf
- Page 1: Figure A17 (with rotation -- set.seed and other methods will not change this if there is a package mismatch)

FigureA9_labeled_tweets_over_time_si_glove_replicate_psrm.pdf
- Page 2: Figure A9
